<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
    <meta content="telephone=no" name="format-detection"/>
    <script>
        var isJsBridgeReady = false;
        var isZHKIOS= false;
        function readyFunc(device){
            isJsBridgeReady = true;
            if(device == 'true'){
              isZHKIOS = true;
            }
        }
    </script>
    <title>机具管理</title>
    <link rel="stylesheet" href="../css/pro_app.min.css" />
    <link rel="stylesheet" href="../lib/yz-sm.min.css">
</head>

<body>
    <div class="page-group">
        <div class="page machines-manage" id="mtMgtPage" >
            <div class="scroll-view">
               <ul class="header">
                <li class="left"><a class="back external"><i class="zhk-nav_back"></i>返回</a></li>
                <li class="middle">机具管理</li>
                <li class="right"><a href=""><i class="zhk-nav_filter"></i></a></li>
            </ul>
            <div class="page-body">
               
               <div class="mtListContainer"><ul class="list"></ul>
               <div class="no-data-wrap" style="display:none;">
                   <div class="no-data"></div>
                    <p>暂无数据</p>
                </div>
               </div>
            </div>

            <script type="text/template" id="mtTPL">
                
                {{ each mts as mt i }}
                <li>
                    <input type="hidden" name="machineToolType" value="{{mt.machineToolType}}"/>
                    <input type="hidden" name="machineToolSn" value="{{mt.machineToolSn}}"/>
                    <input type="hidden" name="shopName" value="{{mt.shopName}}"/>
                    <input type="hidden" name="packageType" value="{{mt.packageType}}"/>
                    <input type="hidden" name="orderId" value="{{mt.orderId}}"/>
                    <input type="hidden" name="logisticsName" value="{{mt.logisticsName}}"/>
                    <input type="hidden" name="logisticsCode" value="{{mt.logisticsCode}}"/>

                    {{ if mt.machineToolType == 1 || mt.machineToolType == 2 || mt.machineToolType == 8 || mt.machineToolType == 9}}
                    <img class="pic" src="../images/zhinengpos.png" alt="">
                    {{ else if mt.machineToolType == 3 || mt.machineToolType == 13 }}
                    <img class="pic" src="../images/saomaqiang.png" alt="">
                    {{ else if mt.machineToolType == 4 || mt.machineToolType == 11}}
                    <img class="pic" src="../images/yunxiaohe.png" alt="">
                    {{ else if mt.machineToolType == 5 || mt.machineToolType == 12}}
                    <img class="pic" src="../images/xiaopiaodayinji.png" alt="">
                    {{ else if mt.machineToolType == 6 ||mt.machineToolType == 7 || mt.machineToolType == 10 || mt.machineToolType == 16}}
                    <img class="pic" src="../images/yunxiaoheplus.png" alt="">
                    {{ else if mt.machineToolType == 14 ||mt.machineToolType == 15 }}
                    <img class="pic" src="../images/liuliangka.jpg" alt="">
                    {{/if}}

                    <span class="info">
                            <p class="name">
                              {{if mt.machineToolType==1}}
                               <span>金员宝智能POS</span>
                              {{else if mt.machineToolType==2}}
                               <span>金员宝智能POS银联版</span>
                              {{else if mt.machineToolType==3}}
                               <span>扫码设备</span>
                              {{else if mt.machineToolType==4}}
                               <span>银员宝-云小盒</span>
                              {{else if mt.machineToolType==5}}
                               <span>小票打印机</span>
                              {{else if mt.machineToolType==6}}
                               <span>金员宝智慧盒子WIFI版</span>
                              {{else if mt.machineToolType==7}}
                               <span>金员宝智慧盒子（WIFI+4G）版</span>
                              {{else if mt.machineToolType==8}}
                               <span>【口碑版】POS基础版（不含卡）</span>
                              {{else if mt.machineToolType==9}}
                               <span>【口碑版】POS基础版（含卡)</span>
                              {{else if mt.machineToolType==10}}
                               <span>【口碑版】云小盒PLUS-WIFI版</span>
                              {{else if mt.machineToolType==11}}
                               <span>【口碑版】云小盒</span>
                              {{else if mt.machineToolType==12}}
                               <span>【口碑版】小票打印机</span>
                              {{else if mt.machineToolType==13}}
                               <span>【口碑版】扫码枪</span>
                              {{else if mt.machineToolType==14}}
                               <span>一年流量卡</span>
                              {{else if mt.machineToolType==16}}
                               <span>【口碑版】云小盒PLUS（WIFI+4G版）</span>
                              {{/if}}
                            </p>
                            <p class="state">
                                {{ if mt.status == 2  }}
                                <span>机具状态：待绑定</span>
                                {{ else if mt.status == 3 }}
                                <span>机具状态：待发货</span>
                                {{ else if mt.status == 4 }}
                                <span>机具状态：可使用</span>
                                {{/if}}

                               <!--  {{ if mt.packageType == 1  }}
                                <span>门店版本：金员宝</span>
                                {{ else if mt.packageType == 2 }}
                                <span>门店版本：金员宝</span>
                                {{ else if mt.packageType == 3 }}
                                <span>门店版本：银员宝</span>
                                {{/if}}-->
                                <!--<span>门店版本：XXX</span>-->
                            </p>
                            <p class="order-num">设备序列号：{{mt.machineToolSn}}</p>
                        </span>
                </li>
                {{ /each }}
            </script>

        </div>
    </div>
</div>

<script src="../lib/zepto.min.js"></script>
<script src="../lib/yz-sm.min.js"></script>
<script src="../lib/swiper.min.js"></script>
<script src="../lib/template.js"></script>

<script src="../base/dialog.js" compress="../base/base.js"></script>
<script src="../base/custom_dialog.js" compress="../base/base.js"></script>
<script src="../base/recalc.js" compress="../base/base.js"></script>
<script src="../base/common.js" compress="../base/base.js"></script>
<script src="../base/h5service.js" compress="../base/base.js"></script>

<script src="../js/machinesManageA.js" compress="../js/main.js"></script>
<script src="../js/machinesManageC.js" compress="../js/main.js"></script>
</body>
</html>
